package csc.fresher.finalgroupfour.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import csc.fresher.finalgroupfour.dao.LoggingDAO;
import csc.fresher.finalgroupfour.domain.Logging;
import csc.fresher.finalgroupfour.domain.User;

@Service
public class LoggingService {
	@Autowired
	private LoggingDAO loggingDAO;
	
	public void addLogging(Logging log) {
		loggingDAO.addLogging(log);
	}

	public List<Logging> listLoggings() {
		return loggingDAO.listLoggings();
	}
	
	public List<Logging> listLoggings(User user) {
		return loggingDAO.listLoggings(user);
	}
	

	public void updateLogging(Logging log) {
		loggingDAO.updateLogging(log);
	}

	public void deleteLogging(Logging log) {
		loggingDAO.deleteLogging(log);
	}
}
